docs: Clarify the platform-dependency of GdkGLContext:use-es
authorEmmanuele Bassi <ebassi@gnome.org>
Sat, 23 Apr 2016 09:33:08 +0000 (10:33 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Mon, 25 Apr 2016 13:35:02 +0000 (14:35 +0100)
Not all platforms allow creating an OpenGL ES context.

gdk/gdkglcontext.c

index cd544798e30b96fbda8192b62aa204754f1609aa..87534c6eecad32509c3ddac3d9d8d57005e917af 100644 (file)
@@ -673,13 +673,14 @@ gdk_gl_context_set_is_legacy (GdkGLContext *context,
  * @context: a #GdkGLContext:
  * @use_es: whether the context should use OpenGL ES instead of OpenGL
  *
- * Requests that GDK create a OpenGL ES context instead of an OpenGL one.
+ * Requests that GDK create a OpenGL ES context instead of an OpenGL one,
+ * if the platform and windowing system allows it.
  *
  * The @context must not have been realized.
  *
- * You should check the return value of gdk_gl_context_get_use_es() to
- * decide whether to use the OpenGL or OpenGL ES API, extensions, or
- * shaders.
+ * You should check the return value of gdk_gl_context_get_use_es() after
+ * calling gdk_gl_context_realize() to decide whether to use the OpenGL or
+ * OpenGL ES API, extensions, or shaders.
  *
  * Since: 3.22
  */